package com.bsoft.lwd.moudlarframe;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * Created by ${泅渡者} on 2018/1/3.
 */

public class App extends Application{
    private Application mApplication;
    private boolean IsDebug = true;
    @Override
    public void onCreate() {
        super.onCreate();
        mApplication = this;
        if (IsDebug) {           // 这两行必须写在init之前，否则这些配置在init过程中将无效
            ARouter.openLog();     // 打印日志
            ARouter.openDebug();   // 开启调试模式(如果在InstantRun模式下运行，必须开启调试模式！线上版本需要关闭,否则有安全风险)
        }
        ARouter.init(mApplication);
    }
    public void  isDebug(boolean isDebug){
        this.IsDebug = isDebug;
    }
}
